package com.eco.common.constant;

public enum BizErrorCodeEnum implements BizEnum {
    URL_REQUEST_ERROR(10001, "url.request.error", "异常接口调用"),
    REQUEST_ERROR(10002, "REQUEST_ERROR", "异常接口调用"),
    PROCESS_FAIL(10003, "PROCESS_FAIL", "服务器处理失败"),
    PARAM_ERROR(10004, "PARAM_ERROR", "参数错误"),
    OPERATION_FAILED(10006, "OPERATION_FAILED", "操作失败"),
    SYSTEM_ERROR(10007, "SYSTEM_ERROR", "系统异常"),
    TOKEN_NOT_EXIST(100013, "TOKEN_NOT_EXIST", "token已过期或未登录"),
    GET_USER_INFO_ERROR(100015, "GET_USER_INFO_ERROR", "获取用户信息失败"),
    HEAD_TOKEN_MISSING(100019, "HEAD_TOKEN_MISSING", "请求参数token缺失"),

    VIDEO_ANALYSIS_FINISHED(200001, "VIDEO_ANALYSIS_FINISHED" , "视频已经分析过了"),

    VIDEO_NOT_EXIST(200002, "", "视频不存在")
    ;

    private int code;
    private String name;
    private String desc;

    private BizErrorCodeEnum(int code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public String getDesc() {
        return this.desc;
    }
}